package com.conversationboard.model.userdata;

import java.util.Date;

import com.conversationboard.formatter.DateFormatter;
import com.conversationboard.model.NameTruncation;

public class UserData {

	private String loginId;
	private String displayName;
	private String originalDisplayName;
	private Date creationDate;
	private Date lastLoggedIn;
	private int postCount;
	private int loginCount;


	public String getLoginId() {
		return loginId;
	}


	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}


	public String getDisplayName() {
		return displayName;
	}


	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}


	public String getOriginalDisplayName() {
		return originalDisplayName;
	}


	public void setOriginalDisplayName(String originalDisplayName) {
		this.originalDisplayName = originalDisplayName;
	}


	public String getFullDisplayName() {
		return NameTruncation.truncateName(this.getDisplayName(), this.getOriginalDisplayName());
	}


	public Date getCreationDate() {
		return creationDate;
	}


	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}


	public Date getLastLoggedIn() {
		return lastLoggedIn;
	}


	public void setLastLoggedIn(Date lastLoggedIn) {
		this.lastLoggedIn = lastLoggedIn;
	}


	public int getPostCount() {
		return postCount;
	}


	public void setPostCount(int postCount) {
		this.postCount = postCount;
	}


	public int getLoginCount() {
		return loginCount;
	}


	public void setLoginCount(int loginCount) {
		this.loginCount = loginCount;
	}


	public String getCreationDateString() {
		return DateFormatter.prettyPrintTime(this.creationDate, null, true, true);
	}


	public String getLastLoggedInString() {
		return DateFormatter.prettyPrintTime(this.lastLoggedIn, null, true, true);
	}

}
